package com.spring.Service.Interface;


import com.spring.Entity.AdminEntity;
import jxl.read.biff.BiffException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * Created by CMCC-sunmo on 2016/8/26.
 */
public interface AdminService {

    String login(String adminName, String adminPassword);

    int addAdmin(AdminEntity adminEntity);

    int updateAdmin(AdminEntity adminEntity, String adminName);

    AdminEntity findById(String adminId);

    AdminEntity findByAdminName(String adminName);

    int changePassword(String adminId, String oldPassword, String newPassword);

//    String addByExcel(MultipartFile file) throws IOException, BiffException;

    Boolean checkAdmin(AdminEntity adminEntity);
}
